package com.seedog.mq.exception;

/**
 * 当生产者发送消息时发生错误抛出的异常
 */
public class ProducerException extends MessageQueueException {
    private static final long serialVersionUID = 1L;
    private static final int DEFAULT_ERROR_CODE = 500;
    
    public ProducerException(String message) {
        super(DEFAULT_ERROR_CODE, "Producer error: " + message);
    }
    
    public ProducerException(String message, Throwable cause) {
        super(DEFAULT_ERROR_CODE, "Producer error: " + message, cause);
    }
}